package com.example.emqx.controller;

import com.example.emqx.entity.ApiResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ExampleFeignService {
    private final ExampleFeignClient exampleFeignClient;
    @Autowired
    public ExampleFeignService(ExampleFeignClient exampleFeignClient) {
        this.exampleFeignClient = exampleFeignClient;
    }

    public ApiResponse<String> sendMessage(String topic, String message) {
        return exampleFeignClient.sendMessage(topic,message);
    }
}
